package com.lengxf.design;

public class Client {

    public static void main(String[] args) {

        ConcreteAllyControlCenter acc = new ConcreteAllyControlCenter("金庸群侠");

        Observer p1, p2, p3;
        p1 = new Player("杨过");
        acc.join(p1);

        p2 = new Player("令狐冲");
        acc.join(p2);

        p3 = new Player("张无忌");
        acc.join(p3);

        p1.beAttacked(acc);

    }

}
